package com.x.mygulimall5.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@MapperScan("com.x.mygulimall5.admin.mapper")//扫描mapper接口文件夹
// 服务注册发现
@EnableDiscoveryClient
// 注册feign客户端
@EnableFeignClients(basePackages = "com.x.mygulimall5.admin.feign")
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
